/*
 * @Descripttion: Toast 简单使用
 * @Author: Appleyk
 * @version: v0.1.1
 * @Date: 2021-05-11 13:21:14
 * @Blob: https://blog.csdn.net/Appleyk
 * @GitHub: https://github.com/kobeyk
 */
import React, {Component} from 'react';
import {Button, View,ActivityIndicator} from 'react-native';
import {Toast, TopView} from 'teaset-pro';
export default class App extends Component {
  render() {
    return (
      <TopView>
        <View style={{padding: 5}}>
          <Button
            title="Toast Success"
            onPress={() => {
              Toast.success('注册成功！',1500,'bottom');
            }}
          />
          <View/>
          <Button
            title="Toast Show"
            onPress={() => {
              Toast.show({
                text: 'Toast Custom',
                icon: <ActivityIndicator size="large" color='green' />,
                position: 'top',
                duration: 10000,
              });
            }}
          />
        </View>
      </TopView>
    );
  }
}
